package practicedemo48;

import java.util.StringJoiner;

public class Test {
    public static void main(String[] args) {
        StringJoiner sj = new StringJoiner("---","[","]");
        String[] arr = new String[] {"1","2","3"};
        for (int i = 0; i < arr.length; i++) {
            sj.add(arr[i]);
        }
        System.out.println(sj.toString());

    }
}
